Optimal. Leaf size=50 \[ \frac {1}{3} a^2 c x^3 \tan ^{-1}(a x)-\frac {c \log \left (a^2 x^2+1\right )}{3 a}-\frac {1}{6} a c x^2+c x \tan ^{-1}(a x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 65, normalized size of antiderivative = 1.30, number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {4878, 4846, 260} \[ -\frac {c \left (a^2 x^2+1\right )}{6 a}-\frac {c \log \left (a^2 x^2+1\right )}{3 a}+\frac {1}{3} c x \left (a^2 x^2+1\right ) \tan ^{-1}(a x)+\frac {2}{3} c x \tan ^{-1}(a x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 260
Rule 4846
Rule 4878
Rubi steps
\begin {align*} \int \left (c+a^2 c x^2\right ) \tan ^{-1}(a x) \, dx &=-\frac {c \left (1+a^2 x^2\right )}{6 a}+\frac {1}{3} c x \left (1+a^2 x^2\right ) \tan ^{-1}(a x)+\frac {1}{3} (2 c) \int \tan ^{-1}(a x) \, dx\\ &=-\frac {c \left (1+a^2 x^2\right )}{6 a}+\frac {2}{3} c x \tan ^{-1}(a x)+\frac {1}{3} c x \left (1+a^2 x^2\right ) \tan ^{-1}(a x)-\frac {1}{3} (2 a c) \int \frac {x}{1+a^2 x^2} \, dx\\ &=-\frac {c \left (1+a^2 x^2\right )}{6 a}+\frac {2}{3} c x \tan ^{-1}(a x)+\frac {1}{3} c x \left (1+a^2 x^2\right ) \tan ^{-1}(a x)-\frac {c \log \left (1+a^2 x^2\right )}{3 a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 50, normalized size = 1.00 \[ \frac {1}{3} a^2 c x^3 \tan ^{-1}(a x)-\frac {c \log \left (a^2 x^2+1\right )}{3 a}-\frac {1}{6} a c x^2+c x \tan ^{-1}(a x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.01, size = 47, normalized size = 0.94 \[ -\frac {a^{2} c x^{2} - 2 \, {\left (a^{3} c x^{3} + 3 \, a c x\right )} \arctan \left (a x\right ) + 2 \, c \log \left (a^{2} x^{2} + 1\right )}{6 \, a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \mathit {sage}_{0} x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 45, normalized size = 0.90 \[ -\frac {a \,x^{2} c}{6}+c x \arctan \left (a x \right )+\frac {a^{2} c \,x^{3} \arctan \left (a x \right )}{3}-\frac {c \ln \left (a^{2} x^{2}+1\right )}{3 a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.33, size = 45, normalized size = 0.90 \[ -\frac {1}{6} \, {\left (c x^{2} + \frac {2 \, c \log \left (a^{2} x^{2} + 1\right )}{a^{2}}\right )} a + \frac {1}{3} \, {\left (a^{2} c x^{3} + 3 \, c x\right )} \arctan \left (a x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.16, size = 46, normalized size = 0.92 \[ -\frac {c\,\left (2\,\ln \left (a^2\,x^2+1\right )+a^2\,x^2-2\,a^3\,x^3\,\mathrm {atan}\left (a\,x\right )-6\,a\,x\,\mathrm {atan}\left (a\,x\right )\right )}{6\,a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.57, size = 48, normalized size = 0.96 \[ \begin {cases} \frac {a^{2} c x^{3} \operatorname {atan}{\left (a x \right )}}{3} - \frac {a c x^{2}}{6} + c x \operatorname {atan}{\left (a x \right )} - \frac {c \log {\left (x^{2} + \frac {1}{a^{2}} \right )}}{3 a} & \text {for}\: a \neq 0 \\0 & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________